<%-- 
    Document   : shedulerResult
    Created on : Mar 8, 2013, 9:18:17 PM
    Author     : daz
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Student Database</title>
    </head>
    <body>
        <h2>Student Table </h2>
        <style type="text/css">
            .myTable { background-color:#FFFFFF;border-collapse:collapse; }
            .myTable th { background-color:#FFFFFF;color:black; }
            .myTable td, .myTable th { padding:5px;border:1px solid #000000; }
        </style>

        <table class="myTable">
            <tr>
                <th>ID</th>
                <th>Name</th>
                <th>Title</th>
                <th>Supervisor</th>
                <th>President</th>
                <th>Secretary</th>
                <th>Additional Member</th>
                <th>Examiner 1</th>
                <th>Examiner 2</th>

            </tr>
            <c:forEach items="${map.students}" var="student">
                <tr>
                    <td> <c:out value="${student.id}"/>  </td>
                    <td>  <c:out value="${student.name}"/></td>
                    <td>  <c:out value="${student.title}"/></td>
                    <td>  <c:out value="${student.supervisor.name}"/></td>
                    <td>  <c:out value="${student.president.name}"/></td>
                    <td>  <c:out value="${student.secretary.name}"/></td>
                    <td>  <c:out value="${student.additionalMember.name}"/></td>
                    <td>  <c:out value="${student.examiner1.name}"/></td>
                    <td>  <c:out value="${student.examiner2.name}"/></td>
                </tr>
            </c:forEach>
        </table>

    </body>
</html>
